package com.imooc.dataobject;

import com.imooc.enums.OrderStatusEnums;
import com.imooc.enums.PayStatusEnums;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.math.BigDecimal;

/**
 * 订单详情
 */
@Entity
@Data
public class OrderMaster {

    /**订单id*/
    @Id
    private String orderId;

    /**买家名字*/
    private String buyerName;

    /**买家手机号*/
    private String buyerPhone;

    /**买家地址*/
    private String buyerAddress;

    /**买家微信Openid*/
    private String buyerOpenid;

    /**订单总金额*/
    private BigDecimal orderAmount;

    /**订单状态 默认为0新订单*/
    private Integer orderStatus = OrderStatusEnums.NEW.getCode();

    /**订单状态，*/
    private Integer payStatus = PayStatusEnums.WAIT.getCode();
}
